"use strict";function _regeneratorRuntime(){_regeneratorRuntime=function(){return o};var c,o={},e=Object.prototype,l=e.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",a=t.toStringTag||"@@toStringTag";function i(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(c){i=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a,i,o,s,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),r=new A(r||[]);return u(t,"_invoke",{value:(a=e,i=n,o=r,s=p,function(e,t){if(s===m)throw Error("Generator is already running");if(s===f){if("throw"===e)throw t;return{value:c,done:!0}}for(o.method=e,o.arg=t;;){var n=o.delegate;if(n){n=function e(t,n){var r=n.method,a=t.iterator[r];if(a===c)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=c,e(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;r=d(a,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}(n,o);if(n){if(n===v)continue;return n}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===p)throw s=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=m;n=d(a,i,o);if("normal"===n.type){if(s=o.done?f:h,n.arg===v)continue;return{value:n.arg,done:o.done}}"throw"===n.type&&(s=f,o.method="throw",o.arg=n.arg)}})}),t}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}o.wrap=s;var p="suspendedStart",h="suspendedYield",m="executing",f="completed",v={};function y(){}function g(){}function b(){}var t={},S=(i(t,r,function(){return this}),Object.getPrototypeOf),S=S&&S(S(T([]))),_=(S&&S!==e&&l.call(S,r)&&(t=S),b.prototype=y.prototype=Object.create(t));function k(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function L(o,s){var t;u(this,"_invoke",{value:function(n,r){function e(){return new s(function(e,t){!function t(e,n,r,a){var i,e=d(o[e],o,n);if("throw"!==e.type)return(n=(i=e.arg).value)&&"object"==_typeof(n)&&l.call(n,"__await")?s.resolve(n.__await).then(function(e){t("next",e,r,a)},function(e){t("throw",e,r,a)}):s.resolve(n).then(function(e){i.value=e,r(i)},function(e){return t("throw",e,r,a)});a(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}})}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function T(t){if(t||""===t){var n,e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(e=function e(){for(;++n=n.length?n.length-1:t],t=this.rect(n),n=this.rect(e);return t.right-n.left}},{key:"slideWidth",value:function(e,t){e=this.thumbs(e);return t<0||t>=e.length?0:e[t].offsetWidth}},{key:"transition",value:function(e,t,n,r,a){this.transitionCallback=a;a=e.querySelector(".is-thumbnails");a.style.transition="transform 300ms ease-in-out",a.style.transform="translate(".concat(r.x,"px,").concat(r.y,"px)")}},{key:"isVertical",value:function(){return!1}},{key:"translate",value:function(e,t){e.querySelector(".is-thumbnails").style.transform="translate".concat(this.isVertical()?"Y":"X","(").concat(t,"px)")}},{key:"toPosition",value:function(e,t){return-1*(this.totalWidth(e,t)-this.slideWidth(e,t)+this.offset(e,t))}},{key:"offset",value:function(e,t){t=this.slideWidth(e,t);return-(e.clientWidth-t)/2}},{key:"toCoord",value:function(e){return{x:this.isVertical()?0:e,y:this.isVertical()?e:0}}},{key:"length",value:function(e){return this.thumbs(e).length}},{key:"thumbs",value:function(e){return e.querySelectorAll(".is-thumbnail")}},{key:"select",value:function(e,n){var t=this,r=this.thumbs(e),a=e.querySelector(".is-image-wrapper img"),i=(r.forEach(function(e,t){t===n?(e.classList.add("selected"),a.setAttribute("src",e.dataset.img),a.setAttribute("srcset",e.dataset.img+" 1x")):e.classList.remove("selected")}),this.toPosition(e,n));this.transition(e,n,this.currentIndex(e),this.toCoord(i),function(){t.translate(e,i)})}}]);function modalTrigger(e,t){function s(){return window.pageYOffset||(document.documentElement||document.body.parentNode||document.body).scrollTop}function c(){return window.innerHeight||(document.documentElement||document.body).clientHeight}function l(){var e=document;return Math.max(e.body.scrollHeight,e.documentElement.scrollHeight,e.body.offsetHeight,e.documentElement.offsetHeight,e.body.clientHeight,e.documentElement.clientHeight)}this.complete=!1,this.callback=e,this.timer=null,this.interval=null,this.options=function(){for(var e=1;e=e&&(clearInterval(n.interval),n.interval=null,n.complete||(n.callback(),n.complete=!0))},this.options.scrollInterval))):"scrollDown"===this.options.trigger?(s(),i=c(),t=this,0=parseFloat(t.options.percentDown)&&(t.complete||(t.callback(),t.complete=!0))})):"scrollUp"===this.options.trigger?(r=l()-c(),a=Math.floor(s()/r*100),i=c(),o=this,0=parseFloat(o.options.percentUp)&&(o.complete||(o.callback(),o.complete=!0))})):"timeout"===this.options.trigger&&(this.timer=setTimeout(this.callback,this.options.timeout))},this.cancel=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null),null!==this.interval&&(clearInterval(this.interval),this.interval=null),this.complete=!0},this.init()}var smoothScroll=_createClass(function e(){_classCallCheck(this,e),this.ignore='a[href="#submit-step"],a[href="#next-step"],a[href^="#yes-link"],a[href="#no-link"],a[href="#submit-1st-step"]',this.topOnEmptyHash=!1,this.animationInterval=null,this.easing="easeOutCubic",this.selector='a[href*="#"]:not(a[href="#submit-step"],a[href="#next-step"],a[href^="#yes-link"],a[href="#no-link"],a[href="#submit-1st-step"])',this.speed=500,this.speedAsDuration=!1,this.durationMax=1300,this.durationMin=300;try{this.init()}catch(e){console.warn(e)}},[{key:"escapeCharacters",value:function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),r=n.length,a=-1,i="",o=n.charCodeAt(0);++a=o)return p.cancelScroll(!0),p.adjustFocus(r,t,h),l=null,!(p.animationInterval=null)},t=function e(t){s+=t-(l=l||t),u=1<(u=0===c?0:s/c)?1:u,u=a+i*p.easingPattern(u),window.scrollTo(0,Math.floor(u)),d(u,n)||(p.animationInterval=window.requestAnimationFrame(e),l=t)},0===window.pageYOffset&&window.scrollTo(0,0),e&&this.updateURL(r,h),this.reduceMotion()?this.adjustFocus(r,Math.floor(n),!1):(this.cancelScroll(!0),window.requestAnimationFrame(t)))}},{key:"reduceMotion",value:function(){return!!("matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches)}},{key:"adjustFocus",value:function(e,t,n){0===e&&document.body.focus(),n||(e.focus(),document.activeElement!==e&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),window.scrollTo(0,t))}},{key:"easingPattern",value:function(e){var t;return"easeInQuad"===this.easing&&(t=e*e),"easeOutQuad"===this.easing&&(t=e*(2-e)),"easeInOutQuad"===this.easing&&(t=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===this.easing&&(t=e*e*e),"easeOutCubic"===this.easing&&(t=--e*e*e+1),"easeInOutCubic"===this.easing&&(t=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===this.easing&&(t=e*e*e*e),"easeOutQuart"===this.easing&&(t=1- --e*e*e*e),"easeInOutQuart"===this.easing&&(t=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===this.easing&&(t=e*e*e*e*e),"easeOutQuint"===this.easing&&(t=1+--e*e*e*e*e),(t="easeInOutQuint"===this.easing?e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e:t)||e}},{key:"getEndLocation",value:function(e){var t=0;if(e.offsetParent)for(;t+=e.offsetTop,e=e.offsetParent;);return t=Math.max(t,0),t=Math.min(t,this.getDocumentHeight()-window.innerHeight)}},{key:"getDocumentHeight",value:function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)}},{key:"getSpeed",value:function(e){e=this.speedAsDuration?this.speed:Math.abs(e/1e3*this.speed);return this.durationMax&&e>this.durationMax?this.durationMax:this.durationMin&&e');if("multi"===t)r='');else if("qty"===t){for(var r='"}var t="",i=(e.imageUrl&&(i=e.imageUrl.replace("images.funnelish.com","img.funnelish.com"),t='
\n \n
')),'")),t=document.createElement("div");return t.classList.add("pl-item"),t.innerHTML=i,t.dataset.pid=e.id,t}},{key:"setupVariants",value:function(e,t,n){if(e.variants)try{var r=JSON.parse(e.variants);if(r&&r.variants){var a=r.variants;if(a.length){var i=n.dataset.selecta,o=document.createElement("div");o.className="pl-variants";for(var s=0;s\n \n ').concat(d.name,"\n")}var h=document.createElement("div");h.className="pl-variant",h.innerHTML='\n \n '.concat(i||"","\n ").concat(c.name,'\n \n\n
\n ').concat(l,"\n
"),o.appendChild(h)}t.appendChild(o)}}}catch(e){console.error(e)}}},{key:"loadProducts",value:function(){var e,i,o,s=this;this.products?(e=document.querySelectorAll(".product-list"),i=[],o=function(){e.forEach(function(e){e.querySelectorAll(".pl-item").forEach(function(e){var t=e.querySelector(".pl-inner>.pl-name>input,.pl-inner>.pl-name>select");"INPUT"===t.tagName&&t.checked||"INPUT"!==t.tagName&&0.pl-name>input,.pl-inner>.pl-name>select").addEventListener("change",function(e){s.selectVariant(null,a,null,r),o()}),s.setupVariants(a,r,e),r.querySelectorAll(".pl-variant-option input,.pl-variant-option select").forEach(function(n){n.addEventListener("change",function(e){var t=n.parentElement;("INPUT"===n.tagName&&n.checked||0.pl-items .pl-item:first-child input").forEach(function(e){e.checked=!0}),document.querySelectorAll(".product-list .pl-variant-option:first-child input").forEach(function(e){e.closest("label").classList.add("selected"),e.checked=!0}),o()):(this.isOrderForm()||this.isOTO())&&console.error("no products in Order Form or OTO!")}},{key:"selectVariant",value:function(e,t,n,r){var a="",e=(e&&n&&(e.closest(".pl-variant-options").querySelectorAll(".pl-variant-option").forEach(function(e){return e.classList.remove("selected")}),n.classList.add("selected")),r.querySelectorAll(".pl-variant-option.selected input")),i=[],o=(e.forEach(function(e){return i.push(e.value)}),i.filter(Boolean).join(" / ")),n=t.imageUrl||"",e=this.getPrice(t,1).dp,s=t.options?t.options.find(function(e){return e.title===o}):null,t=(s&&(n=s.imageUrl||n,e=this.getPrice(t,1,s.price).dp),n&&(a=n=n.replace("images.funnelish.com","img.funnelish.com"),n="".concat(n,"?height=220&width=220&auto=webp&fit=bounds")),r.querySelector(".pl-image img")),s=(t&&t.setAttribute("src",n),r.querySelector(".pl-price .pl-pvalue"));s&&(s.innerHTML=e),this.updateSummary(),this.updateProductPreviews(a)}},{key:"updateProductPreviews",value:function(n){n&&(n="".concat(n,"?auto=webp&fit=bounds"),document.querySelectorAll(".product-image-preview").forEach(function(e){!e.getAttribute("initial-image")&&e.getAttribute("src")&&e.setAttribute("initial-image",e.getAttribute("src"));var t=null;e.classList.contains("image-slider")?t=e.querySelector(".is-image-wrapper img"):e.classList.contains("img")&&(t=e.querySelector("img")),t&&(t.setAttribute("src",n),t.setAttribute("srcset",n+" 1x"))}))}},{key:"findProduct",value:function(e){for(var t=0;tx '.concat(r," pcs")),[e.variant_option1,e.variant_option2,e.variant_option3].filter(Boolean).join(" / ")),o=u.getPrice(n,r,!1,i).dp,s="",s=l&&(e.imageUrl||n.imageUrl)?(t="",(e.imageUrl||n.imageUrl)&&(a=''.concat(r||"1",""),t='')),'
\n '.concat(t,"\n ").concat(a,'\n
\n
\n ').concat(n.name,"\n ").concat(i?''.concat(i,""):"","\n
")):'
'.concat(n.name+(i?'   ●   '.concat(i,""):""),"\n ").concat(a,"
"),r='
\n '.concat(s,'\n
').concat(o,"
\n
");c+=r}),e.innerHTML=c});document.querySelectorAll(".order-summary .__subtotal-row .os-price").forEach(function(e){e.innerHTML=u.currencies.formatPrice(u.fixedPrice(r),u.currency())}),this.discount&&this.discount.discount_value&&(t=this.discount.discount_value,"percentage"===this.discount.discount_type&&(t=r*(t/100)),document.querySelectorAll(".order-summary .__discount-row .os-price").forEach(function(e){e.innerHTML="- "+u.currencies.formatPrice(u.fixedPrice(t),u.currency())}),r-=t);var t,e=document.querySelectorAll(".order-summary .__tax-row");this.tax?(e.forEach(function(e){e.classList.remove("hidden"),e.closest(".os-subtotal").classList.remove("hidden"),e.querySelector(".os-price").innerHTML=u.currencies.formatPrice(u.fixedPrice(u.tax.amount||"0"),u.currency()),e.querySelector(".os-name .__value").innerHTML=" (% ".concat(u.fixedPrice(u.tax.rate||"0.00"),")")}),r+=this.tax.amount):e.forEach(function(e){e.classList.add("hidden")}),this.tax||this.discount?document.querySelectorAll(".order-summary .os-subtotal").forEach(function(e){e.classList.remove("hidden")}):document.querySelectorAll(".order-summary .os-subtotal").forEach(function(e){e.classList.add("hidden")}),r<0&&(console.error("negative total ",r),r=0),document.querySelectorAll(".order-summary .os-total .os-price, .order-summary .__total").forEach(function(e){e.innerHTML=u.currencies.formatPrice(u.fixedPrice(r),u.currency())})}},{key:"setupOrderSummary",value:function(){var o=this,s=(document.addEventListener("change",function(e){"product-id"!==e.target.name&&"product-qty"!==e.target.name||o.updateSummary()}),document.querySelectorAll(".order-summary")),e=(s.forEach(function(n){var t,e,r=n.querySelector(".os-collapse-header"),a=n.querySelector(".os-content"),i=n.querySelector(".os-inner-container");a&&i&&(n.classList.contains("__collapsable")&&(new ResizeObserver(function(){var e=a.clientHeight;i.style.height=n.classList.contains("__open")?e+"px":"0px"}).observe(a),r)&&r.addEventListener("click",function(){var e=a.clientHeight,t=(n.classList.toggle("__open"),n.classList.contains("__open"));i.style.height=t?e+"px":"0px"}),r=n.querySelector(".os-discount-box .__apply"),t=n.querySelector(".os-discount-box .__input"),e=n.querySelector(".__current-discount .__remove"),t)&&r&&(t.addEventListener("keypress",function(e){"Enter"===e.key&&o.applyDiscount(t.value,s)}),r.addEventListener("click",function(){o.applyDiscount(t.value,s)}),e.addEventListener("click",function(){o.applyDiscount("",s)}))}),this.getQueryParam("discount"));e&&this.applyDiscount(e,s)}},{key:"applyDiscount",value:(u=_asyncToGenerator(_regeneratorRuntime().mark(function e(o,n){var t,r,a,i,s=this;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=function(t){n.forEach(function(e){e=e.querySelector(".os-discount-box .__discount-error");e&&((e.innerText=t)?e.classList.remove("hidden"):e.classList.add("hidden"))})},r=function(){document.querySelectorAll(".order-summary .__apply").forEach(function(e){var t=document.createElement("div");t.innerHTML=s.spinnerHtml,e.classList.add("loading"),e.appendChild(t)})},a=function(){document.querySelectorAll(".order-summary .__apply .spinner").forEach(function(e){e.closest(".__apply").classList.remove("loading"),e.remove()})},this.discount=null,t(""),n.forEach(function(e){var t=e.querySelector(".os-discount-box .__input"),n=e.querySelector(".__current-discount"),r=e.querySelector(".__current-discount .__value"),a=e.querySelector(".__discount-row"),i=e.querySelector(".os-subtotal"),e=e.querySelector(".__discount-row .__value");t&&n&&a&&r&&(t.value="",r.innerText="",e.innerText="",n.classList.add("hidden"),a.classList.add("hidden"),i.classList.add("hidden"))}),e.prev=6,o){e.next=9;break}return e.abrupt("return");case 9:return r(),e.next=13,this.post("/discounts/apply",_objectSpread(_objectSpread({},this.getAuthHeader()),{},{is_typ:this.isTYP(),discount_code:o,amount:0,cid:this.getCID()}));case 13:if((i=e.sent).error)return t(i.error),e.abrupt("return");e.next=17;break;case 17:this.discount=i,o=i.discount_code,e.next=26;break;case 21:return e.prev=21,e.t0=e.catch(6),t("couldn't apply given discount code"),console.error(e.t0),e.abrupt("return");case 26:return e.prev=26,a(),this.trigger("discount_applied",this.discount),e.finish(26);case 30:n.forEach(function(e){var t=e.querySelector(".os-discount-box .__input"),n=e.querySelector(".__current-discount"),r=e.querySelector(".__current-discount .__value"),a=e.querySelector(".__discount-row"),i=e.querySelector(".os-subtotal"),e=e.querySelector(".__discount-row .__value");t&&n&&a&&r&&(t.value=o,r.innerText=o,e.innerText=o,n.classList.remove("hidden"),a.classList.remove("hidden"),i.classList.remove("hidden"))}),this.updateSummary();case 32:case"end":return e.stop()}},e,this,[[6,21,26,30]])})),function(e,t){return u.apply(this,arguments)})},{key:"setupCountries",value:(l=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n,r,a,i,o,s,c,l,u=this;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=document.querySelectorAll('.fe-countries,select[data-type="country"],select[data-type="shipping_country"]'),n=document.querySelectorAll(".fe-states"),r=document.querySelectorAll(".fe-cities"),a=document.createDocumentFragment(),i=0;i()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}},{key:"getQueryParam",value:function(e){e=RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);return e&&decodeURIComponent(e[1].replace(/\+/g," "))}},{key:"storeUTMTags",value:function(){var n=this;this.utmTags.forEach(function(e){var t=n.getQueryParam(e)||"";t&&localStorage.setItem(e,t)}),localStorage.getItem("referrer")||""||localStorage.setItem("referrer",document.referrer||"")}},{key:"getUTMTags",value:function(){var n=[],e=(this.utmTags.forEach(function(e){try{var t=localStorage.getItem(e)||"";t&&n.push({name:e,value:t})}catch(e){console.warn(e)}}),this.getCookie("_fbc")),e=(e&&n.push({name:"fbc",value:e}),this.getCookie("_fbp"));return e&&n.push({name:"fbp",value:e}),n.push({name:"user_agent",value:navigator.userAgent}),n.push({name:"referrer",value:localStorage.getItem("referrer")||""}),n.push({name:"session_id",value:this.getCookie("session_id")||""}),n}},{key:"firstInvalidInput",value:function(){for(var e=document.querySelectorAll(".form-element .invalid"),t=0;t.vimeo-player");e&&e.length&&this.loadScript("https://player.vimeo.com/api/player.js",function(){e.forEach(function(t){"true"===t.parentElement.dataset.lazyload&&setTimeout(function(){var e=t.querySelector("iframe");e.src=e.dataset.src,delete e.dataset.src},2500)})})}},{key:"trackVisit",value:(r=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var n,t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={},this.getUTMTags().forEach(function(e){try{var t=e.value;t&&["_raeid","_raid","_sms_id"].includes(e.name)&&(t=parseInt(t)),n[e.name]=t}catch(e){console.warn(e)}}),t="https://analytics."+(this.isBeta()?"beta":"app")+".funnelish.com/view",e.next=6,this.post(t,_objectSpread(_objectSpread({},this.getAuthHeader()),{},{cid:this.getCID(),product_id:null,event_id:1,event_name:"pageview",test_mode:this.funnel.test_mode?1:0,currency:this.currency(),country:this.countries.country,city:this.countries.city,latitude:this.countries.latitude,longitude:this.countries.longitude},n));case 6:(t=e.sent)&&t.success&&t.session_id&&this.setCookie("session_id",t.session_id),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.warn(e.t0);case 13:case"end":return e.stop()}},e,this,[[0,10]])})),function(){return r.apply(this,arguments)})},{key:"debounce",value:function(r,a,i){var o;return function(){var e=this,t=arguments,n=i&&!o;clearTimeout(o),o=setTimeout(function(){o=null,i||r.apply(e,t)},a),n&&r.apply(e,t)}}},{key:"loadTYPSummary",value:(n=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var s,t,n,c,l,u,d,p,h=this;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=function(e,t){var n,r=e.qty,a="",i=(1  ✖   '.concat(r," pcs")),!1),t=(t&&t.classList.contains("__images")&&(i=!0),e.variant_title&&"Main Product"!==e.variant_title?e.variant_title:""),o="";return o=i&&(e.image_url||e.variant_image_url)?(i="",n=(n=e.variant_image_url||e.image_url).replace("images.funnelish.com","img.funnelish.com"),a=''.concat(r||"1",""),i=''),'
\n '.concat(i,"\n ").concat(a,'\n
\n
\n ').concat(e.name,"\n ").concat(t?''.concat(t,""):"","\n
")):'
'.concat(e.name+(t?'   ●   '.concat(t,""):""),"\n ").concat(a,"
"),'
\n '.concat(o,'\n
').concat(h.getCurrencySymbol()," ").concat(h.fixedPrice(e.amount*r),"
\n
")},t=document.querySelectorAll(".order-summary"),this.isTYP()&&0t?e.classList.add("visible"):e.classList.remove("visible")})})}catch(e){console.warn(e)}}},{key:"init",value:(t=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var n=this;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("core.js init"),e.prev=1,this.getFPay()&&(this.isOrderForm()||this.isOTO())&&(this.startLoading(),this.on("app_loaded",function(e,t){8===t&&n.stopLoading()},this)),this.storeUTMTags(),this.smoothScroll=new smoothScroll,this.setup2StepForm(),this.setupOrderSummary(),this.loadProducts(),e.next=10,this.setupCountries();case 10:return this.setupInputs(),this.setupButtons(),this.setupBumps(),this.alive=!0,this.timers(),this.loadApps(),this.setupVideos(),this.updateSummary(),new imagesSlider,e.next=21,this.loadTYPSummary();case 21:this.setupVimeo(),this.setupPopups(),this.setupFaq(),this.setupSticky(),this.setupLazyCodes(),new beforeAfterSlider,e.next=32;break;case 29:e.prev=29,e.t0=e.catch(1),console.error(e.t0);case 32:return e.prev=32,e.finish(32);case 34:this.restoreCustomer();try{this.trigger("load")}catch(e){console.warn(e)}try{setTimeout(function(){n.trackVisit()},4e3)}catch(e){console.warn(e)}case 37:case"end":return e.stop()}},e,this,[[1,29,32,34]])})),function(){return t.apply(this,arguments)})},{key:"checkForms",value:function(){}},{key:"initEvents",value:function(){this.events={oto_yes:[],oto_no:[],optin:[],of_purchase:[],next_step:[],load:[],app_loaded:[],summary_loaded:[],discount_applied:[]}}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(1